package com.campusnews.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.campusnews.annotation.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqc
 * @since 2021-10-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserLook对象", description="")
public class UserLook implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "浏览记录自增id")
    @TableId(value = "look_id", type = IdType.AUTO)
    private Integer lookId;

    @ApiModelProperty(value = "浏览的帖子id")
    private Integer inviId;

    @ApiModelProperty(value = "浏览（1）或屏蔽（2）状态")
    private Integer state;

    @ApiModelProperty(value = "点赞状态")
    private Integer agreeStatus;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @IgnoreSwaggerParameter
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @IgnoreSwaggerParameter
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @IgnoreSwaggerParameter
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @IgnoreSwaggerParameter
    private Date updateTime;


}
